Building ROS2 custom debian package
Table of Content
Building ROS2 custom debian package#
Build debian deb file from ROS2 package
install#
sudo apt install python3-bloom python3-rosdep fakeroot debhelper dh-python
prerequisites#
- Package dependencies must be install
- All dependencies must be declared in
package.xmlpackage file
bloom#
Bloom is a build automation tool
Changelog#
A changelog is a file that contains a condensed list of all important changes made to a project
The changelog is a list of commits
git log --oneline
catkin_generate_changelog
catkin_generate_changelog --all
package version#
ROS2 python package has two files with version fields - package.xml - setup.py
To maintain version use catkin_prepare_release that maintain both files and create tag and change log
Run from workspace root
catkin_prepare_release --version 0.0.2 -y --no-push
version semantic
Version number has three parts
Major.Minor.Path
create package#
from package root folder (not workspace)
bloom-generate rosdebian
fakeroot debian/rules binary
deb file
create package in the parent folder